package gouhuo.allbugs.top.service;

import com.baomidou.mybatisplus.extension.service.IService;
import gouhuo.allbugs.top.model.domain.Visitor;
import gouhuo.allbugs.top.model.request.visitor.VisitorAddRequest;
import gouhuo.allbugs.top.model.request.visitor.VisitorMsgAddRequest;
import gouhuo.allbugs.top.model.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 15294780204
 * @description 针对表【visitor(访客表)】的数据库操作Service
 * @createDate 2023-05-01 18:07:13
 */
public interface VisitorService extends IService<Visitor> {

    /**
     * 添加访客记录
     *
     * @param visitorAddRequest
     * @param request
     * @return
     */
    boolean addVisitor(VisitorAddRequest visitorAddRequest);

    /**
     * 查询仅七天的详细访客信息
     *
     * @param userId
     * @return
     */
    List<UserVO> visitorFull(Integer userId);

    /**
     * 添加留言记录
     * @param visitorMsgAddRequest
     * @return
     */
    void addVisitorMsg(VisitorMsgAddRequest visitorMsgAddRequest);
}
